home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / mvaders / frmoptio.frm < prev    next >
Text File  |  1997-08-24  |  9KB  |  334 lines

  1. VERSION 2.00
  2. Begin Form frmOptions 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "MVaders Game Options"
  5.    ClientHeight    =   2580
  6.    ClientLeft      =   690
  7.    ClientTop       =   1530
  8.    ClientWidth     =   7710
  9.    Height          =   2985
  10.    Icon            =   FRMOPTIO.FRX:0000
  11.    Left            =   630
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   2580
  14.    ScaleWidth      =   7710
  15.    Top             =   1185
  16.    Width           =   7830
  17.    Begin CommandButton cmdCancel 
  18.       Caption         =   "&Cancel"
  19.       Height          =   315
  20.       Left            =   6660
  21.       TabIndex        =   16
  22.       Top             =   540
  23.       Width           =   975
  24.    End
  25.    Begin CommandButton cmdOk 
  26.       Caption         =   "&Ok"
  27.       Height          =   315
  28.       Left            =   6660
  29.       TabIndex        =   20
  30.       Top             =   120
  31.       Width           =   975
  32.    End
  33.    Begin HScrollBar hscChange 
  34.       Height          =   240
  35.       Index           =   7
  36.       Left            =   1980
  37.       Max             =   20
  38.       Min             =   10
  39.       TabIndex        =   15
  40.       Top             =   2220
  41.       Value           =   10
  42.       Width           =   3555
  43.    End
  44.    Begin HScrollBar hscChange 
  45.       Height          =   240
  46.       Index           =   6
  47.       Left            =   1980
  48.       Max             =   15
  49.       Min             =   5
  50.       TabIndex        =   14
  51.       Top             =   1920
  52.       Value           =   5
  53.       Width           =   3555
  54.    End
  55.    Begin HScrollBar hscChange 
  56.       Height          =   240
  57.       Index           =   5
  58.       Left            =   1980
  59.       Max             =   25
  60.       Min             =   15
  61.       TabIndex        =   13
  62.       Top             =   1620
  63.       Value           =   15
  64.       Width           =   3555
  65.    End
  66.    Begin HScrollBar hscChange 
  67.       Height          =   240
  68.       Index           =   4
  69.       Left            =   1980
  70.       Max             =   16
  71.       Min             =   6
  72.       TabIndex        =   12
  73.       Top             =   1320
  74.       Value           =   6
  75.       Width           =   3555
  76.    End
  77.    Begin HScrollBar hscChange 
  78.       Height          =   240
  79.       Index           =   3
  80.       LargeChange     =   5
  81.       Left            =   1980
  82.       Max             =   95
  83.       Min             =   70
  84.       SmallChange     =   5
  85.       TabIndex        =   11
  86.       Top             =   1020
  87.       Value           =   70
  88.       Width           =   3555
  89.    End
  90.    Begin HScrollBar hscChange 
  91.       Height          =   240
  92.       Index           =   2
  93.       Left            =   1980
  94.       Max             =   5
  95.       Min             =   3
  96.       TabIndex        =   10
  97.       Top             =   720
  98.       Value           =   3
  99.       Width           =   3555
  100.    End
  101.    Begin HScrollBar hscChange 
  102.       Height          =   240
  103.       Index           =   1
  104.       LargeChange     =   5
  105.       Left            =   1980
  106.       Max             =   60
  107.       Min             =   30
  108.       SmallChange     =   5
  109.       TabIndex        =   9
  110.       Top             =   420
  111.       Value           =   30
  112.       Width           =   3555
  113.    End
  114.    Begin HScrollBar hscChange 
  115.       Height          =   240
  116.       Index           =   0
  117.       LargeChange     =   5
  118.       Left            =   1980
  119.       Max             =   80
  120.       Min             =   20
  121.       SmallChange     =   5
  122.       TabIndex        =   8
  123.       Top             =   120
  124.       Value           =   20
  125.       Width           =   3555
  126.    End
  127.    Begin Label lblVal 
  128.       Height          =   195
  129.       Index           =   7
  130.       Left            =   5700
  131.       TabIndex        =   25
  132.       Top             =   2220
  133.       Width           =   735
  134.    End
  135.    Begin Label lblVal 
  136.       Height          =   195
  137.       Index           =   6
  138.       Left            =   5700
  139.       TabIndex        =   24
  140.       Top             =   1920
  141.       Width           =   735
  142.    End
  143.    Begin Label lblVal 
  144.       Height          =   195
  145.       Index           =   5
  146.       Left            =   5700
  147.       TabIndex        =   23
  148.       Top             =   1620
  149.       Width           =   735
  150.    End
  151.    Begin Label lblVal 
  152.       Height          =   195
  153.       Index           =   4
  154.       Left            =   5700
  155.       TabIndex        =   22
  156.       Top             =   1320
  157.       Width           =   735
  158.    End
  159.    Begin Label lblVal 
  160.       Height          =   195
  161.       Index           =   3
  162.       Left            =   5700
  163.       TabIndex        =   21
  164.       Top             =   1020
  165.       Width           =   735
  166.    End
  167.    Begin Label lblVal 
  168.       Height          =   195
  169.       Index           =   2
  170.       Left            =   5700
  171.       TabIndex        =   19
  172.       Top             =   720
  173.       Width           =   735
  174.    End
  175.    Begin Label lblVal 
  176.       Height          =   195
  177.       Index           =   1
  178.       Left            =   5700
  179.       TabIndex        =   18
  180.       Top             =   420
  181.       Width           =   735
  182.    End
  183.    Begin Label lblVal 
  184.       Height          =   195
  185.       Index           =   0
  186.       Left            =   5700
  187.       TabIndex        =   17
  188.       Top             =   120
  189.       Width           =   735
  190.    End
  191.    Begin Label lblPrompt 
  192.       Alignment       =   1  'Right Justify
  193.       Caption         =   "Player Fire Speed:"
  194.       Height          =   195
  195.       Index           =   7
  196.       Left            =   60
  197.       TabIndex        =   7
  198.       Top             =   2220
  199.       Width           =   1815
  200.    End
  201.    Begin Label lblPrompt 
  202.       Alignment       =   1  'Right Justify
  203.       Caption         =   "Player Speed:"
  204.       Height          =   195
  205.       Index           =   6
  206.       Left            =   60
  207.       TabIndex        =   6
  208.       Top             =   1920
  209.       Width           =   1815
  210.    End
  211.    Begin Label lblPrompt 
  212.       Alignment       =   1  'Right Justify
  213.       Caption         =   "Invader Down Step:"
  214.       Height          =   195
  215.       Index           =   5
  216.       Left            =   60
  217.       TabIndex        =   5
  218.       Top             =   1620
  219.       Width           =   1815
  220.    End
  221.    Begin Label lblPrompt 
  222.       Alignment       =   1  'Right Justify
  223.       Caption         =   "Invader Fire Speed:"
  224.       Height          =   195
  225.       Index           =   4
  226.       Left            =   60
  227.       TabIndex        =   4
  228.       Top             =   1320
  229.       Width           =   1815
  230.    End
  231.    Begin Label lblPrompt 
  232.       Alignment       =   1  'Right Justify
  233.       Caption         =   "Invader Fire Freq:"
  234.       Height          =   195
  235.       Index           =   3
  236.       Left            =   60
  237.       TabIndex        =   3
  238.       Top             =   1020
  239.       Width           =   1815
  240.    End
  241.    Begin Label lblPrompt 
  242.       Alignment       =   1  'Right Justify
  243.       Caption         =   "Invader Speed:"
  244.       Height          =   195
  245.       Index           =   2
  246.       Left            =   60
  247.       TabIndex        =   2
  248.       Top             =   720
  249.       Width           =   1815
  250.    End
  251.    Begin Label lblPrompt 
  252.       Alignment       =   1  'Right Justify
  253.       Caption         =   "Invader Spacing:"
  254.       Height          =   195
  255.       Index           =   1
  256.       Left            =   60
  257.       TabIndex        =   1
  258.       Top             =   420
  259.       Width           =   1815
  260.    End
  261.    Begin Label lblPrompt 
  262.       Alignment       =   1  'Right Justify
  263.       Caption         =   "Timer Setting:"
  264.       Height          =   195
  265.       Index           =   0
  266.       Left            =   60
  267.       TabIndex        =   0
  268.       Top             =   120
  269.       Width           =   1815
  270.    End
  271. End
  272. Option Explicit
  273.  
  274. Sub cmdCancel_Click ()
  275.  
  276. 'Exit without making changes
  277. Unload frmOptions
  278.  
  279. End Sub
  280.  
  281. Sub cmdOk_Click ()
  282.  
  283. 'Set the values player has selected
  284. GamePrefs.iTimer = hscChange(0).Value
  285. GamePrefs.iIGap = hscChange(1).Value
  286. GamePrefs.iISpeed = hscChange(2).Value
  287. GamePrefs.fIBFreq = hscChange(3).Value / 100
  288. GamePrefs.iIBS